/*
* @Author: asdw
* @Date:   2017-12-25 12:09:44
* @Last Modified by:   asdw
* @Last Modified time: 2017-12-25 12:38:22
*/
var YeffectAttr = {
    isendscroll: false,
    isaddtousmove: false,
    resizeHt_func: [],
    YeffectT15time: false,
    YeffectT15Arry: [],
    YeffectT30time: false,
    YeffectT30Arry: [],
    YeffectT50time: false,
    YeffectT50Arry: [],
    YeffectT100time: false,
    YeffectT100Arry: [],
    YeffectT200time: false,
    YeffectT200Arry: [],
    $upary: [],
    dragupEvent: function () {
        for (var i = 0; i < this.$upary.length; i++) {
            this.$upary[i]();
        }
    }
};
/**
 * [Yeffect 滑动到页面底部事件 用于滑动到页面底部加载更多数据]
 * @type {Object}
 */
var Yeffect = {
    adddragupEvent: function (fn, bottompx) {
        bottompx = bottompx || window["setbottompx"] || 50;
        setbottompx = bottompx;
        YeffectAttr.$upary.push(fn);
        if (window["ISadddragupEvent"]) return;
        ISadddragupEvent = true;
        var doucmnd = $(document);
        var windA = $(window);
        var srintime;

        function srintime_hs() {
            if (windA.scrollTop() > doucmnd.height() - windA.height() - setbottompx) {
                YeffectAttr.dragupEvent()
            }
        };
        srintime_hs();
        windA.scroll(srintime_hs)
    }
};
